﻿using System;

class PrintInfoAboutCompanyAndManager

            // A company has name, address, phone number, fax number, web site and manager. 
            // The manager has first name, last name, age and a phone number. Write a program that reads the information about a company and its manager 
            // and prints them on the console.

{
    static void Main()
    {
        Console.WriteLine("Enter the name of the company:");
        string name = Console.ReadLine();
        Console.WriteLine("Enter the company's address:");
        string address = Console.ReadLine();
        Console.WriteLine("Enter the company's phone number");
        double phone = double.Parse(Console.ReadLine());
        Console.WriteLine("Enter the company fax number:");
        double fax = double.Parse(Console.ReadLine());
        Console.WriteLine("Enter the company's web address");
        string web = Console.ReadLine();
        Console.WriteLine("Enter the first name of the company's manager:");
        string mngFirstName = Console.ReadLine();
        Console.WriteLine("Enter the last name of the company's manager:");
        string mngLastName = Console.ReadLine();
        Console.WriteLine("Enter the manager's age");
        int age = int.Parse(Console.ReadLine());
        Console.WriteLine("Enter the manager's phone number:");
        double mngPhone = double.Parse(Console.ReadLine());
        Console.WriteLine();
        Console.WriteLine(new string('=', 50));
        Console.WriteLine("Company: {0} \nAddress: {1} \nPhone: {2} \nFAX: {3} \nweb site: {4}", name, address, phone, fax, web);
        Console.WriteLine(new string('-', 50));
        Console.WriteLine("Manager: {0} {1} - age {2} \nPhone: {3}", mngFirstName, mngLastName, age, mngPhone);
        Console.WriteLine(new string('=', 50));
    }
}

